package com.jlastu.znb.view;

import android.os.Bundle;
import android.webkit.WebView;

import androidx.appcompat.app.AppCompatActivity;

import com.jlastu.znb.R;

public class NewsDetailActivity extends AppCompatActivity {
    private WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_news_detail);

        webView = findViewById(R.id.webView);
        String newsDetailUrl = getIntent().getStringExtra("newsDetailUrl");
        webView.loadUrl("file:///android_asset/page/" + newsDetailUrl);
    }
}
